﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

/**
 * <Jason>
 * <Date: 20131114>
 * 
 */

namespace VietThuongLMS.ViewModels
{
    public class HocVienViewModel
    {
        public List<HocVien> List { get; set; }
        public int Total { get; set; }

        //Added by Kha
        public List<HocVienMoRongModel> ListMoRong { get; set; }
        public int TotalMoRong {get;set;}
        //End addition

        public HocVienViewModel()
        {
            this.List = new List<HocVien>();
            this.Total = 0;

            //Added by Kha
            this.ListMoRong = new List<HocVienMoRongModel>();
            this.TotalMoRong = 0;
            //End addition
        }

        public HocVienViewModel(List<HocVien> list, int total)
        {
            this.List = list;
            this.Total = total;
        }

        //Added by Kha
        public HocVienViewModel(List<HocVienMoRongModel> list, int total)
        {
            this.ListMoRong = list;
            this.TotalMoRong = total;
        }
        //End addition
    }

    public class HocVienDetailViewModel
    {
        public HocVien hocVienModel { get; set; }
        public HocVien_Lop hocVien_LopViewModel { get; set; }
    }

    //Added by Kha
    public class HocVienMoRongModel
    {
        public DateTime NgayDangKy { get; set; }
        public TaiKhoan TK { get; set; }
        public HocVienMoRongModel()
        {
            TK = new TaiKhoan();
        }
    }
    //End addtion

    public class ThongTinHocVienModel
    {
        public TaiKhoan taiKhoanModel { get; set; }
        public HocVien hocVienModel { get; set; }
        //public HocVien_Lop hocVien_LopViewModel { get; set; }
        //public LopHocViewModel lopHocViewModel { get; set; }

        public ThongTinHocVienModel(TaiKhoan taiKhoanModel, HocVien hocVienModel)
        {
            this.taiKhoanModel = taiKhoanModel;
            this.hocVienModel = hocVienModel;
            //this.hocVien_LopViewModel = hocVien_LopViewModel;
            //this.lopHocViewModel = lopHocViewModel;
        }

        public ThongTinHocVienModel()
        {
            // TODO: Complete member initialization
        }
    }

}
